package com.example.business.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.business.dao.entity.News;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewsMapper extends BaseMapper<News> {
    // 自定义方法：查询最新的n条新闻
    List<News> selectLatestNews(@Param("limit") int limit);
}